package free.mrchen.boot.gate.server.def;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class RouteDef {

    private String id;

    private Integer order = 0;

    private String uri;

    private List<String> predicates = new ArrayList<>();

    private List<String> filters = new ArrayList<>();

    private Map<String, Object> metadata = new HashMap<>();

    public Map<String, Object> getMetadata() {
        return metadata;
    }

    public void setMetadata(Map<String, Object> metadata) {
        this.metadata = metadata;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<String> getPredicates() {
        return predicates;
    }

    public void setPredicates(List<String> predicates) {
        this.predicates = predicates;
    }

    public List<String> getFilters() {
        return filters;
    }

    public void setFilters(List<String> filters) {
        this.filters = filters;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    @Override
    public String toString() {
        return "RouteDef{" +
                "id='" + id + '\'' +
                ", order=" + order +
                ", uri='" + uri + '\'' +
                ", predicates=" + predicates +
                ", filters=" + filters +
                ", metadata=" + metadata +
                '}';
    }
}
